package com.stylismo.intellij.inspection;

import com.intellij.codeInspection.InspectionManager;
import com.intellij.codeInspection.ProblemDescriptor;
import com.intellij.psi.PsiField;
import com.intellij.psi.PsiMethod;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

/**
 * Name: CommonInspection<br>
 * User: Yao<br>
 * Date: 2017/11/25<br>
 * Time: 18:46<br>
 */
public interface CommonInspection {

    @Nullable
    JComponent createOptionsPanel();

    @Nullable
    ProblemDescriptor[] checkField(PsiField field, InspectionManager manager, boolean isOnTheFly);

    @Nullable
    ProblemDescriptor[] checkMethod(PsiMethod method, InspectionManager manager, boolean isOnTheFly);
}

